package com.imooc.demo.demos.web.service.impl;

import com.imooc.demo.demos.web.service.IPicService;
import com.ywb.Native.NativeCpp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PicServiceImpl implements IPicService {
    static {
        System.load("/root/jni.so");
    }


    @Autowired
    private NativeCpp nativeCpp;



    @Override
    public void sayHello() {
        nativeCpp.sayHello();
    }

    @Override
    public int calculate(int num1, int num2) {
        return nativeCpp.calculate(num1, num2);
    }

    @Override
    public void output(String url, String newUrl) {
        nativeCpp.output(url, newUrl);
    }
}
